Lesson: 12 - Conditional Statement – If-then else

Purpose : To learn relative orientation and procedural operations. Students will also learn conditional statements clearly.

Materials Required

Computer, Scratch 3.0, Internet connection, Blocky games.

Curriculum Content 5.5) Conditional statement

Prior knowledge

Students should know about directions (Left, Right, forward and backward), Simple if.

Exercises

Exercise:1



  1. Get a value from the user and check if the given number is less than 10, say you have given a single digit number else, say you have given a two digit number.(Recall the if else card activity)

  2. Exercise Video




    Optional



    Exercise:2



  3. (Blockly Maze Level 1 to 6) How will the person reach the goal?


  4. Exercise:3



  5. (Blockly Maze Level 7) How will the person reach the goal?

  6. Exercise:4



  7. (Blockly Maze Level 8) How will the person reach the goal?

  8. Exercise:5



  9. (Blockly Maze - Level 9) How will the person reach the goal?

  10. Exercise:6



  11. (Blockly Maze - Level 10) How will the person reach the goal?

  12. Solutions




Teacher's Instruction
  1. Teachers should first teach the concept of conditionals and looping through unplugged card activity. Refer to lesson 10.
  2. The Blockly Maze activities are not mandatory. Children can play for all long as they are interested and have time. They can also play Bird and other games in Blockly. Note that these games also use simple loops which will be covered in more detail in the next lesson.
  3. Teachers can use simple conditions that they face in real life. For example, in class the teacher says please stand up if the student’s name starts with the letter 'S'. They can also introduce the ideas of “and” and “or” in that activity. If your name starts with ‘S’ and you are a boy, you should raise your hand. If your name starts with ‘R’ or you are wearing a red ribbon, you should touch your head.
  4. There are many maze puzzles where you enter through one door and have to exit through another. There are also real-life mazes in many places with hedges grown above the height of a human. I.e. You cannot see the full maze. What is a strategy to solve such mazes? Keep to the left or keep to the right is one good strategy. Ask children to think about that and validate it in some maze games! Observe that this is the strategy we used to solve Maze Level 10.